const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  // 权限路由
  permission_routers: state => state.user.routers,
  // 动态添加的路由
  addRouters: state => state.user.addRouters,
  // 平摊后的树结构
  flatMenuTree: state => state.user.flatMenuTree,
  // 用户角色
  role: state => state.user.role
}
export default getters
